package com.qpf.mycms.api.pojo;

import com.qpf.mycms.api.abstracts.BaseRequest;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

@EqualsAndHashCode(callSuper = true)
@Data
@Schema(description = "会员第三方登录信息")
public class MemberOpenidRequest extends BaseRequest implements Serializable {
    @Schema(title = "ID", name = "id", example = "1")
    private Long id;

    /**
     * 会员用户ID
     */
    @Schema(title = "userId", name = "userId", example = "1")
    private Long userId;

    /**
     * 第三方类型(0-未知, 1-wechat)
     */
    @Schema(title = "type", name = "第三方类型(0-未知, 1-wechat)", example = "1")
    private Integer type;

    /**
     * 第三方OPENID
     */
    @Schema(title = "value", name = "第三方OPENID")
    private String value;

    /**
     * token
     */
    @Schema(title = "token", name = "token")
    private String accessToke;

    /**
     * token过期时间
     */
    @Schema(title = "expiredTime", name = "token过期时间")
    private Date expiredTime;

    /**
     * 昵称
     */
    @Schema(title = "nickname", name = "昵称")
    private String nickname;

    /**
     * 用户头像
     */
    @Schema(title = "avatar", name = "用户头像")
    private String avatar;
}
